package com.javasm.finance.entity;

import lombok.*;

@NoArgsConstructor
@AllArgsConstructor
@Setter
@Getter
@ToString
public class User {
    private Integer userId;
    private String userName;
    private String userPwd;
    private Integer roleId;
    private String regTime;
    private String loginTime;
    private Integer isValid;
    private String headImg;
    private Integer versionId;

    public User(String userName, String userPwd) {
        this.userName = userName;
        this.userPwd = userPwd;
    }

    public User(Integer userId, String userName) {
        this.userId = userId;
        this.userName = userName;
    }

    public User(String userName, Integer roleId, Integer isValid, String headImg) {
        this.userName = userName;
        this.roleId = roleId;
        this.isValid = isValid;
        this.headImg = headImg;
    }

    public User(String userName, Integer roleId, String regTime, Integer isValid, String headImg) {
        this.userName = userName;
        this.roleId = roleId;
        this.regTime = regTime;
        this.isValid = isValid;
        this.headImg = headImg;
    }

    public User(Integer userId, String userName, Integer roleId, String regTime, Integer isValid, String headImg) {
        this.userId = userId;
        this.userName = userName;
        this.roleId = roleId;
        this.regTime = regTime;
        this.isValid = isValid;
        this.headImg = headImg;
    }
}
